import { Boolean, Code, CreateDate, DisplayOrder, Entity, PrimaryKey, PrimaryUuid, Title, UpdateDate } from "@sker/core";


@Entity({ name: 'jd_city' })
export class JdCity {
    @PrimaryUuid()
    id: string;

    @Code({ comment: '唯一', unique: true })
    code: string;

    @Title({ comment: '英文', default: '' })
    long_name: string;

    @Title({ comment: '中文', default: '' })
    long_name_cn: string;

    @Title({ comment: '英文', default: '' })
    name: string;

    @Title({ comment: '中文', default: '' })
    name_cn: string;

    @Code({ comment: '国家编码', default: '' })
    country_code: string;

    @Code({ comment: '上级', nullable: true })
    pcode: string;

    @Code({ comment: '类型, Destination,City', default: '' })
    type: string;

    @CreateDate()
    create_date: Date;

    @DisplayOrder()
    displayorder: number;

    @UpdateDate()
    update_date: Date;

    @Code({ nullable: true })
    adcode: string;

    @Code({ default: '' })
    pinyin: string;

    @Code({ default: '' })
    frist: string;

    @Boolean({ default: false })
    is_hot: boolean;
}